Component({
    options: {
        multipleSlots: true
    },
    properties: {
        coupons: {
            type: String,
            value: '/image/picture/couponBg.png'
        },
        id:Number||String,
        isShow:Number||String,
        num: String,
        zhe:Number,
        rule: String,

        title: String,
        image:String,

        desc: String,

        isUse: {
            type: Boolean,
            value: false
        },
        isgood: {  //  是否是兑换券展示商品？
            type: Boolean,
            value: false
        },
        good:Object,
        stateActive:Number||String,
        status:{  //  状态
            type: Number||String,
            value: 0
        },
        unit:String,
    },
    
    methods: {
        handleClick (e) {
            this.triggerEvent('tap', this.data.id)
        },
        toUse (e){
            console.log(11111111111111,this.data.id);
            this.triggerEvent('use', this.data.id)
        }
    }
})
